package com.antdesignbackend.backend.news.notice.service;


import com.antdesignbackend.backend.news.notice.entity.Notice;
import com.antdesignbackend.backend.news.notice.entity.entityVo.NoticeVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;
import org.aspectj.weaver.ast.Not;

import java.util.List;


/**
 * 公告管理
 *
 * @author 不二
 * @email notice
 * @date 2020-07-25 18:11:33
 */


public interface NoticeService extends IService<Notice>{
    void createNotice(Notice notice) throws Exception;
    void updateNotice(Notice notice) throws Exception;
    List<NoticeVo> search(@Param(Constants.WRAPPER) QueryWrapper<NoticeVo> wrapper, Page<NoticeVo> page);
    Integer count(@Param(Constants.WRAPPER) QueryWrapper<NoticeVo> wrapper);
}


